// 这是结果输出
// str '1' if == 1
// num 1 if == 1
//  str '1' switch ----str 1
// num  1 switch -----num 1
//  '1' parseInt switch --- num 1
//  1  parseInt switch --- num 1

function witchtest(params) {
  let str1 = "1",
    str2 = 1,
    str3 = "3";

  if (str1 == 1) {
    console.log("str '1' if == 1");
  }

  if (str2 == 1) {
    console.log("num 1 if == 1");
  }

  switch (str1) {
    case "1":
      console.log(" str '1' switch ----str 1");
      break;

    case 1:
      console.log("str '1' switch -----num 1");

      break;
  }

  switch (str2) {
    case "1":
      console.log(" num  1  switch ----str 1");
      break;

    case 1:
      console.log("num  1 switch -----num 1");

      break;
  }

  switch (parseInt(str1)) {
    case "1":
      console.log(" '1'parseInt switch --- str 1");
      break;

    case 1:
      console.log(" '1' parseInt switch --- num 1");

      break;
  }

  switch (parseInt(str2)) {
    case "1":
      console.log(" 1  parseInt switch --- str 1");
      break;

    case 1:
      console.log(" 1  parseInt switch --- num 1");

      break;
  }
}

witchtest("");
